/*
 * PKL 51 GUNUNG KIDUL
 * Subseksie DATA ENTRY + CAPI
 */
package pkl51.entity;

/**
 *
 * @author FITRI ANDRI ASTUTI
 */
public class Ruta {
    private String NKS;
    private String B1R2;
    private String B1R3;
    private String B1R4;
    private String B1R5;
    private String B1R6;
    private String B1R8;
//    private String B1R9; //gak ada di DB    
    private String nim_pengentri;

    public Ruta() {
    }

    public Ruta(String NKS, String B1R2, String B1R3, String B1R4, String B1R5, String B1R6, String B1R8, String nim_pengentri) {
        this.NKS = NKS;
        this.B1R2 = B1R2;
        this.B1R3 = B1R3;
        this.B1R4 = B1R4;
        this.B1R5 = B1R5;
        this.B1R6 = B1R6;
        this.B1R8 = B1R8;
        this.nim_pengentri = nim_pengentri;
    }

    public String getB1R3() {
        return B1R3;
    }

    public void setB1R3(String B1R3) {
        this.B1R3 = B1R3;
    }

    public String getB1R4() {
        return B1R4;
    }

    public void setB1R4(String B1R4) {
        this.B1R4 = B1R4;
    }
    
    public String getB1R6() {
        return B1R6;
    }

    public void setB1R6(String B1R6) {
        this.B1R6 = B1R6;
    }

    public String getB1R8() {
        return B1R8;
    }

    public void setB1R8(String B1R8) {
        this.B1R8 = B1R8;
    }

    public String getB1R2() {
        return B1R2;
    }

    public void setB1R2(String B1R2) {
        this.B1R2 = B1R2;
    }

    public String getNKS() {
        return NKS;
    }

    public void setNKS(String NKS) {
        this.NKS = NKS;
    }

    public String getNim_pengentri() {
        return nim_pengentri;
    }

    public void setNim_pengentri(String nim_pengentri) {
        this.nim_pengentri = nim_pengentri;
    }

    public String getB1R5() {
        return B1R5;
    }

    public void setB1R5(String B1R5) {
        this.B1R5 = B1R5;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Ruta other = (Ruta) obj;
        if ((this.NKS == null) ? (other.NKS != null) : !this.NKS.equals(other.NKS)) {
            return false;
        }
        if ((this.B1R2 == null) ? (other.B1R2 != null) : !this.B1R2.equals(other.B1R2)) {
            return false;
        }
        if ((this.B1R3 == null) ? (other.B1R3 != null) : !this.B1R3.equals(other.B1R3)) {
            return false;
        }
        if ((this.B1R4 == null) ? (other.B1R4 != null) : !this.B1R4.equals(other.B1R4)) {
            return false;
        }
        if ((this.B1R5 == null) ? (other.B1R5 != null) : !this.B1R5.equals(other.B1R5)) {
            return false;
        }
        if ((this.B1R6 == null) ? (other.B1R6 != null) : !this.B1R6.equals(other.B1R6)) {
            return false;
        }
        if ((this.B1R8 == null) ? (other.B1R8 != null) : !this.B1R8.equals(other.B1R8)) {
            return false;
        }
        if ((this.nim_pengentri == null) ? (other.nim_pengentri != null) : !this.nim_pengentri.equals(other.nim_pengentri)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 29 * hash + (this.NKS != null ? this.NKS.hashCode() : 0);
        hash = 29 * hash + (this.B1R2 != null ? this.B1R2.hashCode() : 0);
        hash = 29 * hash + (this.B1R3 != null ? this.B1R3.hashCode() : 0);
        hash = 29 * hash + (this.B1R4 != null ? this.B1R4.hashCode() : 0);
        hash = 29 * hash + (this.B1R5 != null ? this.B1R5.hashCode() : 0);
        hash = 29 * hash + (this.B1R6 != null ? this.B1R6.hashCode() : 0);
        hash = 29 * hash + (this.B1R8 != null ? this.B1R8.hashCode() : 0);
        hash = 29 * hash + (this.nim_pengentri != null ? this.nim_pengentri.hashCode() : 0);
        return hash;
    }

}
